package be.kuleuven.thesis.framework;

public class Song {
	private String title;
	private String artist;
	private String album;
	private int year;
	private int image;
	
	public Song(String title, String artist, String album, int year, int image) {
		this.title = title;
		this.artist = artist;
		this.album = album;
		this.year = year;
		this.image = image;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getArtist() {
		return artist;
	}

	public void setArtist(String artist) {
		this.artist = artist;
	}

	public String getAlbum() {
		return album;
	}

	public void setAlbum(String album) {
		this.album = album;
	}

	public int getYear() {
		return year;
	}

	public void setYear(int year) {
		this.year = year;
	}

	public int getImage() {
		return image;
	}

	public void setImage(int image) {
		this.image = image;
	}
	
	public boolean satisfiesFilter(Filter filter) {
		return year >= filter.getMinYear() && year <= filter.getMaxYear();
	}
}